<!-- 上传附件 -->
<template>
  <div id="dialog-container">
    <!-- <el-button type="primary" plain @click="dialogVisible = true">上传附件</el-button> -->
    <el-button type="primary" size="small" plain @click="dialogVisible = true">查看附件</el-button>
    <el-dialog v-dialogDrag :title="'上传附件管理'" append-to-body :visible.sync="dialogVisible" :close-on-click-modal="false" width="680px">
      <el-row>
        <el-button>上传</el-button>
        <el-button>批量上传</el-button>
        <el-button>在线浏览</el-button>
        <el-button>删除</el-button>
        <el-button>下载</el-button>
      </el-row>
      <el-table ref="multipleTable" :data="tableData" style="width: 100%">
        <el-table-column type="selection" width="55">
        </el-table-column>
        <el-table-column prop="date" label="日期" width="180">
        </el-table-column>
        <el-table-column prop="name" label="姓名" width="180">
        </el-table-column>
        <el-table-column prop="address" label="地址">
        </el-table-column>
      </el-table>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        dialogVisible: false,
        formData: {
          name: '',
          number: ''
        },
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
      }
    }
  }

</script>
